package com.RyanRestaurant.Mapper;

import com.RyanRestaurant.Entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * order的数据访问层接口
 */

@Mapper
public interface OrderMapper {

    public abstract Integer addOrder(Order order); //添加订单

    public abstract List<Order> getAllOrders(); //获取所有的订单

    public abstract Integer deleteByOid(Integer Oid); //根据Oid删除单条记录
}
